From a3b207eb7068ea94fa0a5f9cc9fa9bbfcac00555 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 17 Dec 2009 06:27:55 +0000 Subject: [PATCH] Fix a reference to X86EMUL_OKAY which was hardcoded as a 0 instead. Signed-off-by: Patrick Colp --- xen/arch/x86/hvm/emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index d257ff3061..dc7a6b5f89 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -801,7 +801,7 @@ static int hvmemul_read_msr( _regs.ecx = (uint32_t)reg; - if ( (rc = hvm_msr_read_intercept(&_regs)) != 0 ) + if ( (rc = hvm_msr_read_intercept(&_regs)) != X86EMUL_OKAY ) return rc; *val = ((uint64_t)(uint32_t)_regs.edx << 32) | (uint32_t)_regs.eax; -- 2.30.2